<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('培训报名表详情页')" />
	<th:block th:include="include :: businessCSS" />
</head>
<body class="no-skin">
<div class="main-container" id="main-container">
	<div class="main-content">
	<form class="layui-form head-form">
	    <div class="north">
	        <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="width:calc(100%-30px)">
				<div class="layui-form-item margin_t0">
					<div class="'layui-inline margin_r0 layui-col-sm4" th:each="field : ${fieldsList}">
						<label class="layui-form-label">[[${field.fieldName}]]：</label>
						<div class="layui-input-block">
							<input type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" class="layui-input canntEdit" readonly>
						</div>
					</div>
				</div>
			</div>
    	</div>
     </form>
	</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
  /*<![CDATA[*/
  var fieldsList = [[${fieldsList}]];
  /*]]>*/
</script>
<script type="text/javascript">
var pd=[];
var $,layer,form,laydate,element;//定义layui模块
layui.use(['laydate','form','layer','jquery','util','element'], function () {
 	$ = layui.$,layer = layui.layer,form = layui.form,laydate = layui.laydate,util = layui.util,element=layui.element;
	pd[0]={};
	pd[0]['guid']=window.location.href.split('guid=')[1];
 	$.each(fieldsList,function(i,v){
 		if(v.fields=='dBmQx')pd[0]['dBmQx']=(v.fieldContent);
 	})
})
function btn1(){
	var rFlag=true;
	pd[0]['bBmZz']='已报名';
	$.operate.post('/hr/trainingplanentryformdetail/changebbmzz', {'infoItems':JSON.stringify(pd, null, 2)},function(res){
		if(res.code!=0){
			$.modal.msgError(res.msg,{icon:2});
			rFlag=false;
		}
	},false);
	return rFlag;
}
function btn2(){
	var rFlag=true;
	pd[0]['bBmZz']='忽略';
	$.operate.post('/hr/trainingplanentryformdetail/changebbmzz', {'infoItems':JSON.stringify(pd, null, 2)},function(res){
		if(res.code!=0){
			$.modal.msgError(res.msg,{icon:2});
			rFlag=false;
			console.log('1',rFlag);
		}
	},false);
	return rFlag;
}
</script>
</body>
</html>